<?php

use Phinx\Migration\AbstractMigration;

class ModifyEntityAssigeeGenerateColumn extends AbstractMigration
{

    public function up()
    {
        $this->table("entity")->addColumn("is_generate", "enum", [
            'values' => "yes,no",
            'default' => "no",
            'null' => false,
            'comment' => "是否生成任务",
        ])
            ->save();
    }

    public function down()
    {
        $this->table("entity")->removeColumn("is_generate")->save();
    }
}
